A high transmission ratio gearbox of ring shape for easy integration inside mechanisms with limited space and robotic rotating joints for moving robotic arms. The toroidal gearbox includes at least one dual function gear, a toroidal spiral face drive to mesh with the at least one dual function gear and a cylindrical gear to mesh with the at least one dual function gear.