The men, named as Lahcen, 38, and Mohsine, 25, were convicted of an "affront to public decency" and of an "unnatural act with a person of the same sex," and were also fined 500 dirhams (USD 52/46 euros), the sources said.
Homosexual activity is punishable in Morocco by up to three years in jail and the divisive law -- known as Article 489 -- has been the subject of several protests, including a topless protest by feminist group Femen in front of Rabat's famous Hassan Tower.
The men were arrested on June 5 after kissing outside the tower in solidarity with the two French women, who were deported after their protest.