Kirchhoff's first and second laws for electrical circuits are consequences of
Kirchhoff's first law is junction rule, according to which the algebraic sum of the currents into any junction in zero. The junction rule is based on
conservation of electric charge. Kirchhoff's second law is loop rule according to which the algebraic sum of the potential difference in any loop including those of associated emfs and those of resistive elements must equal zero. This law is basically the law of conservation of energy.