Sovereign immunity, or crown immunity, is a legal doctrine by which the sovereign or state cannot commit a legal wrong and is immune from civil suit or criminal prosecution. This principle is commonly expressed by the popular legal maxim "rex non potest peccare," meaning "the king can do no wrong."