A firearm including a safety that moves between a safe position that does not permit firing of the firearm and a fire position that permits firing of the firearm, and a lock that locks the safety in the closed position wherein the lock includes an ambidextrous locking mechanism actuable from both sides of the firearm.