interjection, adverb
Expresses understanding, agreement, or realization. Often used as an interjection, but can also function adverbially to mean 'indeed' or 'truly'.
「このボタンを押すと動くんだよ」「なるほど、そういう仕組みか」
"It works when you press this button." "I see, so that's how it works."
なるほど彼の言う通りだ。
Indeed, he is right.