Changes to the School Organisation Code from Thursday include the presumption against the closure of rural schools.
Campaigners in some areas have accused councils of trying to rush closures through in recent months.
Education Secretary Kirsty Williams said all viable alternatives should be considered before closure. This includes linking up with other schools.
Sign up to our newsletter to receive all the latest news and updates.