A line of credit is a defined amount of money that you can access as needed and then repay immediately or over a prespecified period of time.