The order
Person, then thing — me, te, le, nos, les always come first
Me lo dio.
Me lo dio — he gave it to me
Me lo dio ayer.
Te la mandé — I sent it to you
Te la mandé esta mañana.
Nos los trajo — he brought them to us
Nos los trajo del mercado.
Le becomes se
Le lo is not allowed — le and les change to se
Le di el libro → Se lo di.
Se lo di — I gave it to him
Se lo di esta mañana.
Se la mandé — I sent it to them
Se la mandé el lunes.
Me and te never change — only le and les do
Me la envía.
Where they go
Before the verb — the normal spot
Me lo compró.
After no — no comes first
No me lo dijo.
On the end of an infinitive — they attach as one word
Va a dármelo.
On the end of a command — positive commands only
Dámelo.
In front for negative commands — they detach again
No me lo des.
