The shape of bacteria affects their motility, ability to adhere to surfaces, and how they interact with their environment. For instance, rod-shaped bacteria like Bacillus are often more motile due to their flagella, while spherical bacteria like Streptococcus are better at withstanding desiccation. Shape can also influence the effectiveness of antibiotics and the bacteria’s ability to evade the immune system.