Agarose gel is prepared by dissolving agarose powder in a buffer solution, typically using heat to achieve complete dissolution. Once dissolved, the solution is poured into a mold and allowed to cool, forming a semi-solid gel. The concentration of agarose can be adjusted to achieve different pore sizes, which in turn affects the resolution of separated molecules.