Depends on where you are going. Central Mexico has a rainy season staring in May and it rains a lot until October. Cancun and the Riviera maya are great year round but it is recommended you keep an eye out for hurricanes during hurricane season
http://mexicobeaches.net