We investigate instabilities and chaos near the onset of Rayleigh-Bénard convection (RBC) of electrically conducting fluids with free-slip, perfectly electrically and thermally conducting boundary conditions in presence of uniform rotation about vertical axis and horizontal external magnetic field by considering zero Prandtl-number limit of convection is found be either periodic or chaotic. Interestingly, it is found that chaos at the onset can occur through four different routes namely homoclinic, intermittency, period doubling and quasi-periodic routes. Homoclinic and intermittent routes to chaos at the onset occur in presence of weak magnetic field (Q < 2), while period doubling route is observed for relatively stronger magnetic field (Q ≥ 2) for one set of initial conditions. On the other hand, quasiperiodic route to chaos at the onset is observed for another set of initial conditions. However, the rotation rate (value of Ta) also plays an important role in determining the nature of convection at the onset. Analysis of the system simultaneously with DNS and low dimensional modeling helps to clearly identify different flow regimes concentrated near the onset of convection and understand their origins. The periodic or chaotic convection at the onset is found to be connected with rich bifurcation structures involving subcritical pitchfork, imperfect pitchfork, supercritical Hopf, imperfect homoclinic gluing and Neimark-Sacker bifurcations.