In this study we evaluated the antibacterial activity of the crude hydroalcoholic extracts, fractions, and compounds of two plant species, namely Rosmarinus officinalis and Petroselinum crispum, against the bacteria that cause urinary tract infection. The microdilution method was used for determination of the minimum inhibitory concentration (MIC) and minimum bactericidal concentration (MBC). The crude hydroalcoholic extract of R. officinalis displayed in vitro activity against Gram-positive bacteria, with satisfactory MBC for the clinical isolate S. saprophyticus. The fractions and the pure compound rosmarinic acid did not furnish promising results for Gram-negative bacteria, whereas fractions 2, 3, and 4 gave encouraging results for Gram-positive bacteria and acted as bactericide against S. epidermidis as well as E. faecalis (ATCC 29212) and its clinical isolate. R. officinalis led to promising results in the case of Gram-positive bacteria, resulting in a considerable interest in the development of reliable alternatives for the treatment of urinary infections.