In the following sentence
The clams, which he ate, were
<span>
still fresh.
The main clause is:
</span>The clams..., were
<span>
still fresh.
</span>
The subordinate clause is then "which he ate".
This clause gives more information about The clams, which means it has the function of an adjective: it's an adjective clause.