You have to be a Permanent Resident of Canada first and then you have to live here for three years as a permanent resident and meet the residence requirements. However, the rules are going to be tightened next year. See http://www.immigroup.com/news/strengthening-canadian-citizenship-act-receives-royal-assent-passes-law