What is the meaning of House_of_correction?

A kind of residential penitentiary facility, built after the passing of the Elizabethan Poor Law (1601), where those who were "unwilling to work", including vagrants and beggars, were set to work.

A prison.

Source: wiktionary.org