A stored procedure is a precompiled collection of one or more SQL statements that can be executed as a single call. Stored procedures are used to encapsulate business logic, improve performance, and enhance security.