The prevalence of education was not only restricted to males. In pre-colonial Kerala, women, especially those belonging to the matrilineal Nair caste, received an education in Sanskrit and other sciences, as well as Kalaripayattu, a martial art. This was unique to Kerala, but was facilitated by the inherent equality shown by Kerala society to females and males, since Kerala society was largely matrilineal, as opposed to the rigid patriarchy in other parts of India which led to a loss of women's rights.