The Susceptible-Infected-Recovered (SIR) model for the spread of an infectious disease ina population of constant size is considered. In order to control the spread of infection,we propose the model with four bounded controls which describe vaccination of newborns,vaccination of the susceptible, treatment of infected, and indirect strategies aimed at areduction of the incidence rate (e. g. quarantine). The optimal control problem ofminimizing the total number of the infected individuals on a given time interval is statedand solved. The optimal solutions are obtained with the use of the Pontryagin MaximumPrinciple and investigated analytically. Numerical results are presented to illustrate theoptimal solutions.