A line of credit is a flexible loan from a financial institution that provides a borrower with a maximum borrowing limit, allowing them to access funds as needed up to that limit. It is often used for short-term financing needs and can be either secured or unsecured, with interest charged only on the amount borrowed.