The given sequence is:
\[
4, 9, 16, 25, ?, 49
\]
Observe that these numbers are squares of consecutive integers:
\[
4 = 2^2, 9 = 3^2, 16 = 4^2, 25 = 5^2, 49 = 7^2
\]
The missing number is the square of 6:
\[
6^2 = 36
\]
Thus, the number that replaces the question mark is \( \boxed{36} \).