Have you made a plan for tomorrow? You can say, “I am going to finish my homework.” Can you see dark clouds gathering? You can say, “It is going to rain.”
In both sentences, be going to refers to the future. This guide explains how to form it, when to use it, how it differs from will, and how to avoid common mistakes.