The bacteria that cause pimples are called Propionibacterium acnes, or P. acnes for short.
These bacteria live on your skin all the time. They become a problem only when a pore becomes blocked. This happens when excess oil or sebum mixes with dead skin cells to form a "plug."