Cell shape is largely determined by its function and the mechanical forces acting upon it. The cytoskeleton, composed of microtubules, intermediate filaments, and actin filaments, plays a crucial role in maintaining cell shape. The extracellular matrix and interactions with neighboring cells also contribute to the shape of a cell. For instance, epithelial cells have a distinct shape compared to muscle cells due to their different functions and locations in the body.