Translation:The king ordered this harbor to be closed.
You sentence only reads well if you add a person/pronoun ... The king ordered you to ...
This just sounds like the harbour itself was ordered by the king to close itself. Not sure how common the subjuctive is in common usage, but personally I would say "The King decreed that this harbour be closed."