The best time of year to visit Mexico for a beach vacation is typically between December and April, when the temperatures are more mild and rainfall is less likely. The Riviera Maya is especially popular during this time due to its attractive climate and beautiful beaches. However, if you don't mind a bit of rain or higher temperatures, visiting during the summer months can also be enjoyable. The advantage to this is that there are usually fewer crowds and lower prices for accommodation.