State any two functions of the cells found surrounding the stomata?

The cells surrounding the stomata are guard cells. They perform following functions:
(i) Protect the inner tissues from external factors, pathogenic attacks etc.
(ii) They regulate the opening and closing of stomatal cells.