Almost 100 people are facing drug charges after attending a Sydney Mardi Gras afterparty.

The revellers were caught during a police operation involving the dog unit that was held to coincide with last night's event.

Police charged 96 people with drug possession and issued three cannabis cautions.

Another man has also been arrested in connection with the theft of tickets worth $10,000.