The type of investment where you lend your money to a government agency or a corporation for a fixed period of time and earn interest is : BOND
During bond investment, you basically committed yourself for a liability agreement for a specific amount of money. In return, you will pay it back plus the agreed interest