You may have money saved up for this or you could borrow money from a bank or building society, this is called a Mortgage.
A Mortgage is money you borrow to pay for your home, which you pay back over a long time (usually around 25 years). You usually need to have some money saved up already already (called a deposit) to be able to get a mortgage.