The question is of not legality of marriage, it is which country's law shall apply. Since you have given additional information about your marriage being registered as per Indian laws in the Indian Embassy in your subsequent post, how do you expect the experts to give you a proper opinion without knowing the details, the experts are not astrologers to know what has happened in each and every querist's life without they furnish the details.
Now to your question: If your marriage was subsequently in accordance to the provisions of section 24 of Foreign marriages Act which reads as given below:
24.Certification of documents of marriages solemnized in accordance with local law in a foreign country.-
(1) Where ----
(a) a marriage is solemnized in any foreign country specified in this behalf by the Central Government, by notification in the Official Gazette, in accordance with the law of that country between parities of whom one at least is a citizen of India ; and
(b) a party to the marriage who is such citizen produces to a Marriages Officer in the country in which the marriage was solemnized ----
(i) a copy of the entry in respect of the marriage in the marriage register of that country certified by the appropriate authority in that country to be true copy that entry;
(2) A document relating to a marriage in a foreign country issued under sub-section (1) shall be admitted in evidence in any proceedings if it were a certificate duly issued by the appropriate authority of that country.
Thus, if your marriage was registered under the above provisions or under the provisions of Special marriages act in India, you are eligible to apply for dissolution of your marriage by a decree of divorce in India under the said provisions of law based on the grounds available with you as per the governing matrimonial law of India.
Getting divorce in India will be difficult because of slow court system, and possibly need of your spouse to be present at the divorce.