Toyota Motor Corp. and Mazda Motor Corp. have agreed to expand their partnership by jointly developing new technologies to make driving safer for both people and the environment.