Disclosed is a solid polymer electrolyte prepared by incorporating an alkali metal salt or alkaline earth metal salt into polyvinyl alcohol. The solid polymer electrolyte is widely usable and inexpensive and has excellent heat-resistance and high mechanical strength. Preferably, it further contains a polar solvet and/or polyether to have an elevated ionic-conductivity.