Main two glands are
1) sweat gland
2) sebaceous gland
Explanation:
The two main glands present in the skin are sweat gland and sebaceous gland
Function of these glands are as follow:
sweat gland : It helps to regulate the temperature of body.
sebaceous gland : It helps in producing and releasing of sebum which has vital role in protection and lubrication of the surface of skin.