We investigated the structure of magnetic field and vertical electric currents in two active regions. Electric currents were calculated from the observations of transverse magnetic field. There exist two systems of vertical electric currents in an active region; a system of local currents and global one. The globál current is about 2.10^^ A. In the leading part of the active region it is directed upward, and in the tail - downward and is plausibly determined by the global rotation of plasma. The flare activity is dosely connected with the value and direction of both local and globál currents: the flares tend to appear in places with upward currents. The sensitivity of Hα„ emission to the sign of current implies that the charged particles accelerated in the upper parts of magnetic loops are responsible for these formations.