Taking the logarithm of an number is the inverse operation of exponentiation.

Logarithms and Exponents Visualized