The main contract refers to the contract with the largest trading volume and open interest.
For futures contracts, generally from a time perspective, it is a contract that is 3 months away from the delivery period and will become the main contract.
But there are exceptions; especially contracts that are greatly affected by the main force.