The compound past is used for actions that are completed and have no further relevance at present. For example, "J’ai fini mes devoirs."
On the other hand, the imperfect tense is used for ongoing actions in the past without an ending, or something that you used to do regularly. For example, "Je faisais mes devoirs."