I don’t know what text you are referring too. But what I can tell you is that a main idea is the main topic/point of the text the author is trying to make to you.
Ask yourself: What was the most important part of the text? What points is the author trying to point out?
With this info, I am sure you can get the main idea of the text you are reading about.