Provided you’ve registered on the local municipal register, all children in Spain, including expat kids, can attend public schools.   Education standards are high, and there are also numerous international and private schools in all the major cities.