Yes, it is generally legal to fish from the beach in Mexico, but you must have a valid fishing license. Here are some key points to remember:
A fishing license is required for all non-Mexican residents, even if fishing from the shore.
It is illegal to fish in protected marine parks and nature reserves.
You can get a license through local authorities or fishing charter companies.