For usually goes with The Present Perfect Tense, but not always. I think it's For 6 years, I have tried to learn some foreign languages but I failed if the action Learning some foreign languages is still happening. If this action stopped in the past, it would be For (last) 6 years, I tried to learn some foreign languages but I failed .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.