According to the Quebec Highway Safety Code, it is mandatory to wear a helmet when riding an electric bike.