When installing an interior door, what is the casing nailed to ?

When installing an interior door, what is the casing nailed to ?