Bacteria come in all shapes and sizes—some are straight as a rod, others twist like a corkscrew. Shape plays an important role in how bacteria infiltrate and attack cells in the body. The helical shape of Helicobacter pylori, a species of bacteria which can cause ulcers, may help it penetrate tissues.