I take 我不明白你刚说的第一句话 to mean

"I don't understand what you said in the first line"

I'm trying to understand what 的 does in this sentence (or grammar function).
Relatedly, would it be possible to omit it and still have a well formulated sentence?

Thanks in advance!