When was the First Mardi Gras?

The first Carnival, mardi gras was in 1837. Mardi gras is always the forty days prior to Easter. It is celebrated in New Orleans and Rio.