"We are tired of rowdy groups parading round with inflatable dolls or novelty penis headbands," said Rosa Maria Cano, the mayor from the conservative Popular Party. "We just don’t want this sort of obscene behaviour in our town."
"It is not that we are against people celebrating their stag and hen parties but they need to do so in an orderly way," the Mojácar mayor told Cadena Ser radio. "We are a hospitable town but want to welcome everyone, and that includes famiies."
Walking naked in public or "in an outfit that is deemed offensive to dignity or religious sentiments, or is considered sexist, racist or homophobic" is also prohibited.
The bylaws also demand that tourists cover up away from the beach areas prohibiting the wearing of just bathing suits on the street.
Men can in future be stopped by police for strolling around the town shirtless.
Such actions will in future be liable to fines of up to €1,000.
The new set of bylaws was passed in a council vote last Thursday despite being blocked by opposition parties.
Manuel Zamora, of the opposition socialist party, branded the bylaws "absurd".
"It is a way to destroy future tourism in the town," the councillor told Europa Press.
"Punishing someone for walking around in just their bathing suit is so ridiculous and unfair that it will ensure they won’t come back again. And word will get around fast," he said.