An assault rifle is a selective-fire rifle that uses an intermediate cartridge and a detachable magazine. It is a type of rifle designed for use in military and law enforcement applications, and is typically characterized by its ability to fire in both semi-automatic and fully automatic modes.