Castilho is a municipality in the state of São Paulo in Brazil. The population is 19,873 (2015 est.) in an area of 1065 km². The elevation is 365 m.The municipality contains 2.57% of the Aguapeí State Park, created in 1998. It contains part of the Mouth of the Aguapeí Private Natural Heritage Reserve, created in 2010.