Complex sentence: It can be tough, flexible and sometimes rigid and functions to provide cells with structural support and protection and to act as a filtering mechanism.
Split into simpler sentences: It can be tough, flexible, and sometimes rigid. It provides cells with both structural support and protection, and also acts as a filtering mechanism.