That would be definition of temperature in thermodynamic framework. However, as Ron has remarked, it can be understood better in framework of statistical mechanics which in some sense is a more fundamental science than thermodynamics.
For a non-isolated system (i.e. a system which is allowed to exchange energy with its surroundings) temperature is a parameter which tells how energies are distributed in the system$^{**}$. More precisely consider a system which can exist in various states (configurations) $|1>, |2>, |3>,...$ of energies $E_1,\:E_2,\:E_3\:,..$ respectively. Then saying that this system has temperature $T$ means that probability for this system to be found in state $|i>$ of energy $E_i$ is ~$exp(-E_i/kT)$.
Now consider two systems $A$, and $B$.
Suppose $A$ can exist in states $|A1>, |A2>, |A3>,...$ of energies $E^A_1,\:E^A_2,\:E^A_3\:,..$ respectively; and $B$ can exist in states $|B1>, |B2>, |B3>,...$ of energies $E^B_1,\:E^B_2,\:E^B_3\:,..$ respectively. Now suppose we allow these systems to exchange energy with each other. We say that systems $A$, and $B$ have attained equilibrium when the energy distribution in the combined system $A+B$ as well as as in its subsystems $A$, and $B$ is no more changing with time, i.e. when
$1.$ The combined system $A+B$ is at a definite temperature $T$ (i.e. energy distribution in $A+B$ is given according to parameter $T$ )
$2.$ Systems $A$ and $B$ themselves are at some definite temperatures $T_A$ and $T_B$.
With these definitions of temperature and of equilibrium one can show that at equilibrium we should have $T_A=T_B=T$. (You can try to prove it yourself for the simple case when both the systems $A$ and $B$ have finitely many energy states of distinct energy).
** for an isolated system at energy $E$ temperature is defined in a different way.