Policies of isolating infectives in the general stochastic epidemic are considered. With costs assigned to the infection and isolation of individuals, an optimal policy is found, which at any stage minimises the expected future cost. An optimal policy is also found for the general deterministic epidemic and the two policies are compared. Finally, some numerical examples are provided.