The anti-Leptospiral IgG test is primarily used to diagnose and monitor the treatment of leptospirosis, a bacterial infection that can cause fever, chills, headache, muscle aches, and in severe cases, kidney and liver failure. The test can also be used to detect a previous infection with Leptospira bacteria.