When you are creating or editing a Task you have the ability to assign the Task to a specific Matter.
Select the Matter from the Matter/Lead drop-down list.
After the New Task is saved the task appears in the list under the Task bar in the Matter details.