Unterliegen:
The other meaning of "unterliegen" (in addition to "to be defeated" mentioned already by Moritz Noricus) is "to be subject to". It is pronounced with stress on the third syllable.
"Schnaps unterliegt der Branntweinsteuer."
"Die Vereinbarung unterliegt einem Vorbehalt."
Unterlegen:
This is quite complicate because there are two different verbs that not only mean different things but follow also different grammatical rules: "etwas unterlegen" and "etwas mit etwas unterlegen". The first one is seperable and the object that is being layed underneath is the grammatical object (accusative). It is the one mentioned already by Moritz Noricus. The second one is not seperable and the grammatical accusative object ist what is going to lay on top.
a) etwas unterlegen:
Sie legt ein dickes weiches Tuch unter, wenn sie das Baby auf dem Boden wickelt.
Hast du daran gedacht, dass ein dickes weiches Tuch unterGElegt werden muss?
Hast du vergessen, ein Tuch unterZUlegen?
b) etwas mit etwas unterlegen:
Der Arrangeur unterlegt die Melodie mit einem satten Grove.
Im Diagramm sind die Vorjahreszahlen grau unterlegt (no "GE"!).
Es st sinnvoll, Stichworte farblich zu unterlegen. (not "unterzulegen"!)
In "etwas unterlegen" the accent is on the first syllable of the word "unterlegen". In "etwas mit etwas unterlegen" the accent is on the third one.