You lend money to the government when you buy a bond. The government pays you interest regularly and returns your money when the bond ends.