Real gross domestic product grew 0.3% in April after edging up 0.1% in March, according to Statistics Canada.
Most of the April increase was attributable to mining and oil and gas extraction and, to a lesser extent, wholesale trade.
Mining and oil and gas extraction rose 2.7% in April after declining 2.0% in February and 1.1% in March.
Oil and gas extraction advanced 2.4% in April as crude petroleum production rebounded from maintenance and production difficulties in February and March.
Natural gas production was down slightly in April, and storage levels declined for the first time in a year. Support activities for mining and oil and gas extraction increased 5.1% as drilling and rigging services advanced.
Mining, excluding oil and gas extraction, grew 3.1% in April with increased output at copper, nickel, potash, lead and zinc mines.
Wholesale trade was up 1.2% in April, a fifth consecutive monthly increase, with notable growth in the sale of agricultural supplies and building materials.
Retail trade fell 0.8% in April after increasing 0.5% in March. Output decreased at clothing and clothing accessories stores, new car dealers and general merchandise stores (including department stores).
Conversely, retail sales at health and personal care stores and gasoline stations was up.
Manufacturing declined 0.3% in April and construction edged down 0.1% as declines in residential construction and repair works outweighed gains in non-residential building and engineering construction.
In contrast, the output of real estate agents and brokers (+1.2%) was up for a third consecutive month as activity in the home resale market continued to increase.