The structure of an organization should be aligned with its goals, tasks, and environment. For example, a hierarchical structure might be more effective in a stable environment, whereas a flatter structure might be more effective in a dynamic environment.