The main clause in the sentence The clams, which he ate, were still fresh is The clams were still fresh.
The subordinate clause, that is which he ate, is used as an adjective, since it comes after the noun and motifies it. This type of clauses are usually introduced by words like that, when, where, which, etc. and separated by commas whenever it is a non-defining clause.