What is the meaning of Rectory?

The residence of Roman Catholic priest(s) associated with a parish church.

The residence of an Anglican rector.

Source: wiktionary.org