The main purpose of insurance is to transfer the financial risk of potential losses from individuals or businesses to an insurance company. It ensures that policyholders are protected against unexpected events, such as accidents, disasters, or liability claims, by providing compensation or coverage for the associated costs.