Leptospirosis is a bacterial infection transmitted through contaminated water or soil, primarily spread by rats.