A man is in custody after allegedly firing a gun at a police officer in Mississauga on Sunday morning.

Peel Regional Police say officers were carrying out an investigation in the area of Torbram Road and Lucknow Drive when a male pulled out a firearm and shot at an officer.