Antibiotics are usually the main treatment option for kidney infections. The type of medication you are prescribed and how long you will need to take it depends on your health and the kind of bacteria found in your urine tests.