When did Mozart compose the clarinet concerto?

Mozart composed the Concerto for Clarinet and Piano, K.622, in 1791.

He wrote it specifically for the Basset clarinet, though the sheet music is now available for both Bb and standard A clarinet.