2:187 You are permitted during the nights when you restrain yourselves (siyyaam) to indulge your women. They are your confidantes, and you are their confidants. Allah knows that you have betrayed yourselves, and therefore He redeemed you and pardoned you. Henceforth, mix with them, and seek you of what Allah has decreed for you, and eat and drink (wa kuluu wa ashraboo) until you can understand this as clearly as the white thread from the black thread at dawn. Restrain yourselves till the night. And you shall not mix with them whilst involved in your places of submission. These are the limits of Allah; therefore you shall not breach them. Allah thus clarifies His revelations for the people, that they become observant.
Excuse my ignorance but there is a command to eat and drink until dawn, then a command to restrain from eating until night.
Also, what was being indulged for the women that needed restraining?
Who are not to be mixed with when in submission? Are women banned from submitting?